package apibasej.basic.misc;


public class UtilConverter {

	//http://www.unitconversion.org
	//http://www.unitconversion.org/unit_converter/typography.html
		
	
	public static double cmToInch(double cm){
		return cm/2.54;
	}
	public static double inchToCm(double inch){
		return inch*2.54;
	}
	
	public static double mmToInch(double mm){
		return mm/25.4;
	}
	public static double inchToMm(double inch){
		return inch*25.4;
	}
	
	
	public static double mmToPx(double mm){
		return mm*3.779527559;
	}
	public static double pxToMm(double px){
		return px/3.779527559;
	}
	
	public static double cmToPx(double cm){
		return cm*37.79527559;
	}
	public static double pxToCm(double px){
		return px/37.79527559;
	}

	
	
	
	
}
